[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FRNDINT           Round to Integer            Exception Flags: I P

FRNDINT

       Logic:      ST . nearest integer (ST)

     FRNDINT rounds ST to the nearest integer. The way the rounding is
     accomplished depends on the RC field in the control word:

                        RC = 00         Round to nearest integer
                                        If exactly between two, choose
                                        the even integer.
                        RC = 01         Round downwards (towards -.)
                        RC = 10         Round upwards (towards +.)
                        RC = 11         Truncate (round towards 0)

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FRNDINT             16-50            3             FRNDINT
  --------------------------------------------------------------------------

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson